Fix infinite recursion in CargoError impl for Box<CargoError>
authorBrian Koropoff <bkoropoff@gmail.com>
Sun, 28 Sep 2014 21:39:06 +0000 (14:39 -0700)
committerBrian Koropoff <bkoropoff@gmail.com>
Sun, 28 Sep 2014 21:39:06 +0000 (14:39 -0700)
Insert necessary explicit derefs.

src/cargo/util/errors.rs

index c9e3a5ae2a84d42f714388c217ec183cefc0f6db..594ea8ad990dd13eaa5c7238f71f3e0f00fc104d 100644 (file)
@@ -76,19 +76,19 @@ impl Show for Box<CargoError + Send> {
 
 impl CargoError for Box<CargoError + Send> {
     fn description(&self) -> String {
-        (*self).description()
+        (**self).description()
     }
 
     fn detail(&self) -> Option<String> {
-        (*self).detail()
+        (**self).detail()
     }
 
     fn cause(&self) -> Option<&CargoError> {
-        (*self).cause()
+        (**self).cause()
     }
 
     fn is_human(&self) -> bool {
-        (*self).is_human()
+        (**self).is_human()
     }
 
     fn box_error(self) -> Box<CargoError + Send> {